//
//  WB_HttpManager.h
//  GhStaff
//
//  Created by mini3 on 2017/12/7.
//  Copyright © 2017年 GhStaff. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^WBHttpPostRequestResultBlock)(NSString*requestId, NSString* code, NSString* message, id data);
typedef void(^WBHttpPatchRequestResultBlock)(NSString*requestId, NSString* code, NSString* message, id data);
typedef void(^WBHttpGetRequestResultBlock)(NSString*requestId, NSString* code, NSString* message, id data);

@interface WB_HttpManager : NSObject

/// 请求网络 POST
-(void)requestPostWithUrl:(NSString*)url
          dictionaryParam:(NSDictionary*)param
               retquestId:(NSString*)requestId
          withResultBlock:(WBHttpPostRequestResultBlock)resultBlock;

/// 请求网络 登录 注册  POST
- (void)requestPostLoginRegWithUrl:(NSString*)url
           dictionaryParam:(NSDictionary*)param
                retquestId:(NSString*)requestId
           withResultBlock:(WBHttpPostRequestResultBlock)resultBlock;

/// 重置手机登录密码 PATCH
- (void)requestPatchResetPwdWithUrl:(NSString*)url
           dictionaryParam:(NSDictionary*)param
                retquestId:(NSString*)requestId
           withResultBlock:(WBHttpPatchRequestResultBlock)resultBlock;

/// 请求网络 GET
-(void)requestGetWithUrl:(NSString*)url
          dictionaryParam:(NSDictionary*)param
               retquestId:(NSString*)requestId
          withResultBlock:(WBHttpGetRequestResultBlock)resultBlock;
@end
